Fix memory leaks in tests case.c and misc.c (#189)
authorAndreas-Schniertshauer <59561559+Andreas-Schniertshauer@users.noreply.github.com>
Mon, 30 Mar 2020 11:51:44 +0000 (13:51 +0200)
committerGitHub <noreply@github.com>
Mon, 30 Mar 2020 11:51:44 +0000 (07:51 -0400)
commite51f416e0c3165b7a9d18ed86bce6870e335a709
treebe737ad4ac09d4d862707c558fa58bcca7f19ff8
parentffba678bf43253676228066f627ae1a857c41777
Fix memory leaks in tests case.c and misc.c (#189)

* Add: tests to CMakeLists.txt

* Disable compilation of charwidth, graphemetest and normtest because of missing getline

* Refactoring: UTF8PROC_ENABLE_TESTING default Off, move tests that don't compile on windows to NOT MSVC section, add testing to appveyor.yml

* Add: testing to travis

* Changed: flag to WIN32 because MinGW has the same problem as MSVC

* Commented out graphemetest and normtest because they fail.

* Re-added: graphemetest and normtest added missing data to the path of the text files.

* Fix: last commit was party wrong normtest failed.

* * Commented out graphemetest and normtest because they fail, because in CMakeLists is missing building of data.

* Add: mingw_static, mingw_shared, msvc_shared, msvc_static to ignore list

* Add: prefix utf8proc. to tests

* Fix: memory leaks in tests case.c and misc.c forgot to call free after calling utf8proc_NFKC_Casefold

Co-authored-by: Andreas-Schniertshauer <Andreas-Schniertshauer@users.noreply.github.com>
test/case.c
test/misc.c